package com.yonyou.cyxdms.basedata.service.entity.series;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * <p>
 * 车系
 * </p>
 *
 * @author renwd
 * @since 2018-12-10
 */
@TableName("tm_series")
public class SeriesPO extends DMSBasePO<SeriesPO> {

    private static final long serialVersionUID = 1L;

    /**
     * SERIESID
     */
    @TableId(value = "SERIES_ID", type = IdType.AUTO)
    private Long seriesId;

    /**
     * APP_ID
     */
    @TableField("APP_ID")
    private String appId;

    /**
     * 品牌id
     */
    @TableField("BRAND_ID")
    private Long brandId;

    /**
     * 公司代码
     */
    @TableField("COMPANY_CODE")
    private String companyCode;
    /**
     * 所有者代码
     */
    @TableField("OWNER_CODE")
    private String ownerCode;

    /**
     * 所有者的父组织代码（用于二网使用）
     */
    @TableField("OWNER_PAR_CODE")
    private String ownerParCode;

    /**
     * 车系代码
     */
    @TableField("SERIES_CODE")
    private String seriesCode;
    /**
     * 车系名称
     */
    @TableField("SERIES_NAME")
    private String seriesName;

    /**
     * 资料来源
     */
    @TableField("DATA_SOURCES")
    private Integer dataSources;

    /**
     * 是否有效
     */
    @TableField("IS_VALID")
    private Integer isValid;

    /**
     * 是否进口车
     */
    @TableField("IS_IMPORT")
    private Integer isImport;

    @TableField("SOURCE_ID")
    private String sourceId;
    @TableField("SOURCE_CHANGED_AT")
    private LocalDateTime sourceChangedAt;

    /**
     * 最低价格
     */
    @TableField("Min_Price")
    private Double minPrice;

    /**
     * 最高价格
     */
    @TableField("Max_Price")
    private Double maxPrice;

    /**
     * 车系图片
     */
    @TableField("CARSERIAL_PIC")
    private String carserialPic;

    /**
     * 分享链接
     */
    @TableField("SHARE_URL")
    private String shareUrl;

    /**
     * 车系详情链接
     */
    @TableField("TODETAIL_URL")
    private String todetailUrl;

    /**
     * 说明
     */
    @TableField("introduction")
    private String introduction;

    @TableField("POWER_TYPE")
    private Integer powerType;

    @TableField("START_TYPE")
    private Integer startType;

    @TableField("START_DATE")
    private LocalDateTime startDate;

    @TableField("UPDATED_BY")
    private String updatedBy;

    @TableField("CREATED_BY")
    private String createdBy;

    @TableField("UPDATED_AT")
    private LocalDateTime updatedAt;

    @TableField("CREATED_AT")
    private LocalDateTime createdAt;

    @TableField("IS_DELETED")
    private Integer isDeleted;

    @TableField("IS_ISSUE")
    private Integer isIssue;

    @TableField("SEND_DATE")
    private LocalDateTime sendDate;
    
    @TableField("SEND_BY")
    private String sendBy;
    
    public Long getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Long seriesId) {
        this.seriesId = seriesId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getOwnerParCode() {
        return ownerParCode;
    }

    public void setOwnerParCode(String ownerParCode) {
        this.ownerParCode = ownerParCode;
    }

    public String getSeriesCode() {
        return seriesCode;
    }

    public void setSeriesCode(String seriesCode) {
        this.seriesCode = seriesCode;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getIsImport() {
        return isImport;
    }

    public void setIsImport(Integer isImport) {
        this.isImport = isImport;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public LocalDateTime getSourceChangedAt() {
        return sourceChangedAt;
    }

    public void setSourceChangedAt(LocalDateTime sourceChangedAt) {
        this.sourceChangedAt = sourceChangedAt;
    }

    public Double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Double minPrice) {
        this.minPrice = minPrice;
    }

    public Double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getCarserialPic() {
        return carserialPic;
    }

    public void setCarserialPic(String carserialPic) {
        this.carserialPic = carserialPic;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getTodetailUrl() {
        return todetailUrl;
    }

    public void setTodetailUrl(String todetailUrl) {
        this.todetailUrl = todetailUrl;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public static long getSerialVersionUid() {
        return serialVersionUID;
    }

    public Integer getPowerType() {
        return powerType;
    }

    public void setPowerType(Integer powerType) {
        this.powerType = powerType;
    }

    @Override
    public String getUpdatedBy() {
        return updatedBy;
    }

    @Override
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String getCreatedBy() {
        return createdBy;
    }

    @Override
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    @Override
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    @Override
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public Integer getIsDeleted() {
        return isDeleted;
    }

    @Override
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getStartType() {
        return startType;
    }

    public void setStartType(Integer startType) {
        this.startType = startType;
    }

    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    
    public Integer getIsIssue() {
		return isIssue;
	}

	public void setIsIssue(Integer isIssue) {
		this.isIssue = isIssue;
	}

	public LocalDateTime getSendDate() {
		return sendDate;
	}

	public void setSendDate(LocalDateTime sendDate) {
		this.sendDate = sendDate;
	}

	public String getSendBy() {
		return sendBy;
	}

	public void setSendBy(String sendBy) {
		this.sendBy = sendBy;
	}

	@Override
    public String toString() {
        return "SeriesPO{" +
                "seriesId=" + seriesId +
                ", appId='" + appId + '\'' +
                ", brandId=" + brandId +
                ", companyCode='" + companyCode + '\'' +
                ", ownerCode='" + ownerCode + '\'' +
                ", ownerParCode='" + ownerParCode + '\'' +
                ", seriesCode='" + seriesCode + '\'' +
                ", seriesName='" + seriesName + '\'' +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", isImport=" + isImport +
                ", sourceId=" + sourceId +
                ", sourceChangedAt=" + sourceChangedAt +
                ", minPrice=" + minPrice +
                ", maxPrice=" + maxPrice +
                ", powerType=" + powerType +
                ", startType=" + startType +
                ", startDate=" + startDate +
                ", updatedBy=" + updatedBy +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", createdAt=" + createdAt +
                ", isDeleted=" + isDeleted +
                ", carserialPic='" + carserialPic + '\'' +
                ", shareUrl='" + shareUrl + '\'' +
                ", todetailUrl='" + todetailUrl + '\'' +
                ", introduction='" + introduction + '\'' +
                '}';
    }

    /**
     * 将PO 信息转化为DTO
     *
     * @param dto 需要进行转换的dto
     * @author renwd
     * @since 2018/7/22 0022
     */
    protected <T extends DMSBaseDTO> void transDtoToPo(T dto) {
        BeanMapperUtil.copyProperties(this, dto, "seriesId");
    }


}
